//定义目录响应的数据类型
export interface CategoryResponseData extends ResponseData {
  data: Category[]
}
//基本响应数据类型
export interface ResponseData {
  code: number
  message: string
  ok: boolean
  data: any
}

export interface Category {
  id: number
  name: string
  category1Id?: number
  category2Id?: number
}

//定义获取属性及属性值的响应数据类型
export interface AttrResponseData extends ResponseData {
  data: Attr[]
}

export interface Attr {
  id: number
  attrName: string
  categoryId: number
  // categoryLevel: number
  attrValueList: AttrValue[]
}

export interface AttrValue {
  id: number
  valueName: string
  attrId: number
}
//定义添加属性值的请求参数类型
export interface AttrValueRequestData {
  valueName: string
  attrId: number
  id?: number
}
//定义添加属性的请求参数类型
export interface AttrRequestData {
  attrName: string
  categoryId: number
  id?: number
}
